<template>
    <div id="adddd">
        <van-goods-action>
            <van-goods-action-icon icon="chat-o" text="客服" color="#07c160" />
            <van-goods-action-icon icon="cart-o" text="购物车" />
            <van-goods-action-icon icon="star" text="已收藏" color="#ff5000" />
             
            <van-cell is-link > 
                            
                 <van-goods-action-button type="warning" text="加入购物车" @click="addActive" />
            </van-cell>
    
            <van-goods-action-button type="danger" text="立即购买" />
            <van-popup v-model="show">添加成功</van-popup>
           
           
        </van-goods-action>
        
    </div>
</template>
<script>
export default {
    name: "Adddd",
    methods: {
        addActive() {
            this.$emit("addAc");
            this.show = true;
        }
    },
    data() {
    return {
      show: false,
    };
  },

//   methods: {
//     showPopup() {
//       this.show = true;
//     },
//   },
};
</script>
<style scoped>
.van-popup--center.van-popup--round {
        width: 200px;
        height: 100px;
        line-height: 100px;
        text-align: center;
    }
    .van-icon::before {
    display: none;
}
.van-goods-action-button{
    position:absolute;
    width: 120px;
    right: -0px;
 
}
.van-cell__value{
    position:relative;
    z-index: 1200;
    right: 87px;
    top: 2px;
    width: 120px;
    height: 44px;
}
.van-popup--center{
    line-height: 50px;
    text-align: center;
    width: 200px;
    height: 50px;
    color: rgb(218, 40, 40);
    border-radius: 50px;
    background-color: rgb(53, 46, 46);
}
</style>